<?php
/**
 * Created by PhpStorm.
 * User: wan
 * Date: 2015/12/28
 * Time: 11:46
 */

namespace Admin\Controller;


use Think\Controller;

class SysController extends Controller
{
    public function index()
    {
    }

    //反馈意见
    public function suggest(){
        $this->display();
    }

    /*
     * 反馈意见表单
     * */
    public function sugPost(){
        $data = I("post.");
        $obj = M("suggest");
        $arr=[
            "suggest"=>$data['suggest'],
            "updated"=>time()
        ];
        $obj->add($arr);
        $this->success('提交成功','../User/index',3);
    }
}